package com.weight.system.project.PO;

import java.io.Serializable;
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.weight.common.util.DateFormUtils;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;

import lombok.Data;

/**
 * 项目信息表
 */
@Data
public class ProjectInfo implements Serializable {

	private static final long serialVersionUID = 2814639517974791520L;

	private String projInfoId; //项目id

	private String projInfoName; //项目名称

	private String projInfoCode; //项目编号

	private String contCode; //合同编号

	private String clientName; //客户名称

	private String clientAddr; //客户地址

	private String clientCtct; //客户联系人

	private String clientTel; //客户电话

	private String clientMail; //客户邮箱

	private String clientPcode; //客户邮编

	private Date startDate; //开工日期

	private Date endDate; //完工日期

	private String payType; //付款条件

	private BigDecimal contAmt; //合同总金额

	private BigDecimal finalAmt; //最终金额

	private Integer projInfoStatus; //状态

	private String orgInfoId; //机构id

	private Integer isDel; //是否删除

	private Date createTime; //创建时间

	private Date updateTime; //修改时间

	private String createBy; //创建人

	private String updateBy; //修改人

	private String standbyfield1; //备用字段1

	private String standbyfield2; //备用字段2

	private String standbyfield3; //备用字段3

	private String comTravellerL; //销售代表
	private String saleSupervisorL; //销售主管
	private String busAffairsL; //商务

	private String asChiefEngineerL; //副总工程师
	private String projectManagerL; //项目经理
	private String projectEngineerL; //项目工程师
	private String houseKeeperL; //仓库管理员

	private String eIEngineerL; //维保工程师
	
	private String comTravellerS; //销售代表
	private String saleSupervisorS; //销售主管
	private String busAffairsS; //商务

	private String asChiefEngineerS; //副总工程师
	private String projectManagerS; //项目经理
	private String projectEngineerS; //项目工程师
	private String houseKeeperS; //仓库管理员

	private String eIEngineerS; //维保工程师
	 
	private String carS ; //  车辆
	private String carL ; //  车辆
	 
	private String houseS ; // 仓库
	private String houseL ; // 仓库
	  
	private Integer timeDay;
	
	public  ProjectInfo(){
		super();
	}

	public  ProjectInfo(String projInfoId,String projInfoName,String projInfoCode,String contCode,String clientName,String clientAddr,String clientCtct,String clientTel,String clientMail,String clientPcode,Date startDate,Date endDate,String payType,BigDecimal contAmt,BigDecimal finalAmt,Integer projInfoStatus,String orgInfoId){
		super();
		this.projInfoId = projInfoId;
		this.projInfoName = projInfoName;
		this.projInfoCode = projInfoCode;
		this.contCode = contCode;
		this.clientName = clientName;
		this.clientAddr = clientAddr;
		this.clientCtct = clientCtct;
		this.clientTel = clientTel;
		this.clientMail = clientMail;
		this.clientPcode = clientPcode;
		this.startDate = startDate;
		this.endDate = endDate;
		this.payType = payType;
		this.contAmt = contAmt;
		this.finalAmt = finalAmt;
		this.projInfoStatus = projInfoStatus;
		this.orgInfoId = orgInfoId;
	}


	public Integer getTimeDay() {
		return DateFormUtils.daysBetween(startDate,endDate);
	} 
}